
package com.shop.cloud.common.portal.constant;

/**
 * 全局返回码
 * @author
 * 2019年7月25日
 */
public enum PortalReturnCode {

	ERR_60000(60000, "系统错误，请稍候再试"){},//其它错误
	ERR_60001(60001, "登录超时，请重新登录"){},
	ERR_60002(60002, "session不能为空"){},
	ERR_60003(60003, "请先登录商城"){},
	ERR_60004(60004, "租户ID不能为空"){},
	ERR_60006(60006, "该手机号已注册，请直接登录"){},
	ERR_60007(60007, "该手机号未注册"){},
	ERR_60008(60008, "验证码发送过频繁，请稍后再试"){},
	ERR_60009(60009, "验证码不合法"){},
	ERR_60010(60010, "账号或密码错误"){},
	;

	PortalReturnCode(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	private int code;
	private String msg;

	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}

	@Override
	public String toString() {
		return "MyReturnCode{" + "code='" + code + '\'' + "msg='" + msg + '\'' + '}';
	}

}
